using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ShopModel
{
    List<ShopData> shopList = new List<ShopData>();

    public void Init()
    {
        for (int i = 0; i < ConfigManager.Instance.shopData_List.Count; i++)
        {
            ShopData shopData = new ShopData();
            shopData.id= ConfigManager.Instance.shopData_List[i].id;
            shopData.icon = ConfigManager.Instance.shopData_List[i].icon;
            shopData.Attack = ConfigManager.Instance.shopData_List[i].Attack;
            shopData.HP = ConfigManager.Instance.shopData_List[i].HP;
            shopData.equipType = ConfigManager.Instance.shopData_List[i].equipType;
            shopData.Money = ConfigManager.Instance.shopData_List[i].Money;
            shopData.trait = ConfigManager.Instance.shopData_List[i].trait;
            shopList.Add(shopData);
        }
    }

    public List<ShopData> GetData()
    {
        return shopList;
    }
}
